package com.grape.dp.decorator;
/**
 * 描述:AbstractDecorator 装饰角色
 * @author: myx
 * @date: 2019/7/24 0024
 * Copyright © 2019-grape. All rights reserved.
 */
public abstract class AbstractDecorator implements GatewayComponent {
    private GatewayComponent gatewayComponent;
    public AbstractDecorator(GatewayComponent gatewayComponent){
        this.gatewayComponent=gatewayComponent;
    }
    @Override
    public void service() {
        gatewayComponent.service();
    }
}
